import QtQuick 2.6
import Qt.labs.controls 1.0
import QtQuick.Layouts 1.1
import "../template" as Tm
import fan.qt.complex 1.0 as Lex
Tm.Navigator {
    id: nav
    title: "关于本应用"


    ColumnLayout {
        anchors.fill: parent

        Image {
            Layout.alignment: Qt.AlignHCenter
            Layout.preferredWidth: labelv.width
            Layout.preferredHeight: labelv.width
            source: "../favicon.png"
        }

        Label {
            id: labelv
            text: "版本 " + Qt.application.version.replace(/\.(\d+)(?!\.)/, " build $1")
            Layout.alignment: Qt.AlignHCenter
        }

        Label {
            text: "暂无新版本"
            Layout.alignment: Qt.AlignHCenter
            color: "cadetblue"
        }

        Rectangle {
            Layout.preferredHeight: 1
            Layout.fillWidth: true
            Layout.alignment: Qt.AlignHCenter
            color: "gainsboro"
        }


        GroupBox {
            title: qsTr("联系方式")
            Layout.alignment: Qt.AlignHCenter
            Layout.preferredWidth: nav.width * 0.8
            ColumnLayout {
                anchors.fill: parent
                Label { text: qsTr("网址：" +Lex.G.WEB); lineHeight: 1.5 }
                Label { text: qsTr("联系人：" + Lex.G.CONTACT); lineHeight: 1.5}
                Label { text: qsTr("联系电话：" + Lex.G.MOBILE); lineHeight: 1.5 }
                Label { text: qsTr("邮箱：" + Lex.G.MAILBOX); lineHeight: 1.5 }               
                Label { text: qsTr("地址：" + Lex.G.ADDRESS); lineHeight: 1.5 }
            }
        }


        Label {
            text: "Copyright©2015-2016 " + Qt.application.organization
            Layout.alignment: Qt.AlignHCenter
            font.weight: Font.Thin
        }

    }


}
